﻿using MyEncoder;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Cypher
{

    internal class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("请输入需要加密的字符：");
            string plainText = Console.ReadLine();
            Console.WriteLine("请输入加密密钥：");
            string key = Console.ReadLine();
            Console.WriteLine("密文为：");
            //创建一个Encoder类对象
            VEncoder encoder = new VEncoder();
            encoder.plainText = plainText;
            encoder.key = key;
            //计算函数
            encoder.encryption();
            Console.ReadKey();




            }
    }
}